    $("#send").on("click",function () {
        $('#tg').treegrid({
            lines: true,
            fitColumns: true,
            loadMsg:"加载中....",
            method: 'post',
            queryParams: {
                bh: $("#bh").val(), cs: $("#cs").val(), qs: $("#qs").val(), isFirst:true
            },
            url:'/easyui/getTreeTable',
            idField:'bh',
            treeField:'bh',
            animate:true,
            // nowrap:true,
            // checkbox:true,
            // selectOnCheck:true,//如果设置为 true，点击复选框将会选中该行。如果设置为 false，选中该行将不会选中复选框。
            singleSelect:false,
            columns:[[
                {field:'bh',title:'编号'},
                {field:'name',title:'信息',align:'left'}
            ]]
            ,
            onBeforeExpand : function(row) {
                // 此处就是异步加载地所在
                if (row) {
                    $(this).treegrid('options').queryParams = {
                        bh: row.bh, cs: $("#cs").val(), qs: $("#qs").val(), isFirst:false
                    }
                }
                return true;
            },
          /*  toolbar: [{
                iconCls: 'icon-edit',
                title:"hahah",
                handler: function(){
                    // console.log($("#tg").treegrid('getData'));
                    // console.log("selectAll:"+$("#tg").treegrid('selectAll'));
                    // console.log($("#tg").treegrid('getSelected'));
                    console.log($("#tg").treegrid('getSelections'));
                    // console.log($("#tg").datagrid("getRows"));

                    // console.log($("#tg").treegrid('getData'));

                }
            },'-',{
                iconCls: 'icon-help',
                handler: function(){alert('help')}
            }]*/
            toolbar: '#tb'
        });
    });
    function exportExcel() {
        var rows = $("#tg").datagrid("getRows");
    }
    function radioMode() {
        $("#tg").treegrid('options').singleSelect=true;
        $("#tg").treegrid('reload');
        console.log($("#tg").treegrid('options').singleSelect)
    }
    function multiSelectMode() {
        $("#tg").treegrid('options').singleSelect=false;
        $("#tg").treegrid('reload');
        console.log($("#tg").treegrid('options').singleSelect)
    }
    function selectAll() {
        $("#tg").treegrid('selectAll')
    }
    function unselectAll() {
        $("#tg").treegrid('unselectAll')
    }